﻿<?xml version="1.0" encoding="utf-8" ?>
<GuidancePackage xmlns="http://schemas.microsoft.com/pag/gax-core"
    Name="Salamanca" 
    Caption="Salamanca"
    Description="Business Application Software Factory"
    Guid="041e77d6-5685-43fa-88bf-c4ec6d837484" 
    SchemaVersion="1.0">
  <Overview Url="Html\Overview.html" />
  <Recipes>
    <Recipe Name="CreateSolution">
      <Types>
        <xi:include href="TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(gax:Types/gax:TypeAlias)" />
      </Types>
      <Caption>Collects information for a new Salamanca based solution.</Caption>
      <Arguments>
        <Argument Name="ApplicationName" Required="true">
          <Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.CodeIdentifierStringConverter, Microsoft.Practices.RecipeFramework.Library" />
        </Argument>
        <Argument Name="ApplicationNamespace" Required="true">
          <Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library" />
        </Argument>
        <Argument Name="ModelProjectName">
          <ValueProvider Type="Evaluator" Expression="$(ApplicationName).Model">
            <MonitorArgument Name="ApplicationName" />
          </ValueProvider>
        </Argument>
        <Argument Name="ModelProjectNamespace">
          <ValueProvider Type="Evaluator" Expression="$(ApplicationNamespace).Model">
            <MonitorArgument Name="ApplicationNamespace" />
          </ValueProvider>
        </Argument>
      </Arguments>
      <GatheringServiceData>
        <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
          <Pages>
            <Page>
              <Title>Salamanca Application Information</Title>
              <LinkTitle>Salamanca</LinkTitle>
              <Help>Enter the new application name (e.g. "MyApp") and namespace (e.g. "Company.Project.MyApp").</Help>
              <Fields>
                <Field ValueName="ApplicationName" Label="Application Name" InvalidValueMessage="Must be a valid .NET identifier (e.g. it shouldn't contain spaces or special characters)." />
                <Field ValueName="ApplicationNamespace" Label="Namespace" InvalidValueMessage="Must be a valid .NET namespace identifier (e.g. it shouldn't contain spaces or special characters)." />
              </Fields>
            </Page>
          </Pages>
        </Wizard>
      </GatheringServiceData>
    </Recipe>
    <Recipe Name="CreateConsoleProject">
      <Types>
        <xi:include href="TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(gax:Types/gax:TypeAlias)" />
      </Types>
      <Caption>Collects information for a new Salamanca based console application.</Caption>
      <Arguments>
        <Argument Name="ApplicationName" Required="true">
          <Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.CodeIdentifierStringConverter, Microsoft.Practices.RecipeFramework.Library" />
        </Argument>
        <Argument Name="ApplicationNamespace" Required="true">
          <Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library" />
        </Argument>
      </Arguments>
    </Recipe>
    <!--<Recipe Name="AddActivityModel">
      <Types>
        <xi:include href="TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(gax:Types/gax:TypeAlias)" />
      </Types>
      <Caption>Add an activity model.</Caption>
      <Description>Adds a new activity model and the associated T4 code generation file to a Salamanca project.</Description>
      <HostData>
        --><!--<Icon ID="689" />--><!--
        <Icon Guid="FAE04EC1-301F-11d3-BF4B-00C04F79EFBC" ID="4542" />
        <CommandBar Name="Project Add" />
      </HostData>
      <Arguments>
        <Argument Name="CurrentProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
          <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.FirstSelectedProject, Microsoft.Practices.RecipeFramework.Library" />
        </Argument>
        <Argument Name="ActivityName">
          <Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.CodeIdentifierStringConverter, Microsoft.Practices.RecipeFramework.Library"/>
        </Argument>
        <Argument Name="TargetFile">
          <ValueProvider Type="Evaluator" Expression="$(ActivityName).saml">
            <MonitorArgument Name="ActivityName" />
          </ValueProvider>
        </Argument>
      </Arguments>
      <GatheringServiceData>
        <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
          <Pages>
            <Page>
              <Title>Activity information</Title>
              <Fields>
                <Field ValueName="ActivityName" Label="Activity Name" InvalidValueMessage="Must be a valid .NET identifier (e.g. it shouldn't contain spaces or special characters)." />
              </Fields>
            </Page>
          </Pages>
        </Wizard>
      </GatheringServiceData>
      <Actions>
        <Action Name="AddActivityModel" Type="Salamanca.AddActivityModelAction, Salamanca.Guidance">
          <Input Name="ActivityName" RecipeArgument="ActivityName" />
        </Action>
      </Actions>
    </Recipe>-->
  </Recipes>
</GuidancePackage>
